package com.jsong.linuo.polymorphic;

/**
 * @Author: 黎诺
 * @CreateTime: 2025-04-24
 * @Description: 测试
 */

public class Test01 {
    public static void main(String[] args) {
        NoteBook noteBook = new NoteBook();
        Mouse mouse = new Mouse();
        KeyBorad keyBorad = new KeyBorad();

        noteBook.start();
        noteBook.useUSB(mouse);
        noteBook.useUSB(keyBorad);
        noteBook.stop();
    }
}
